﻿using System;
using UIFramwork;
using UnityEngine.UI;


[UIDetail("登录页面", "UI Page/PageLogin")]
public class PageLogin : UIBase
{
    public Button btn;


    public override void CreateUI()
    {
        base.CreateUI();

        btn = transform.GetComponentInChildren<Button>(true);
    }

    public override void ActiveUI()
    {
        base.ActiveUI();
        btn.onClick.AddListener(() => UIMgr.Open<BlackPage>());
    }
    public override void DeActiveUI()
    {
        base.DeActiveUI();
        btn.onClick.RemoveListener(() => UIMgr.Open<BlackPage>());
    }

    public void Debug()
    {
        UnityEngine.Debug.Log("Done");
    }
}